package com.tender.dtos;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
public class ExportDTO extends ImportDTO {

    // 是否是 外拖的标识，是 -> ture; 否 -> false(装箱)
    private boolean externalDragFlag;

    /********************* 拖箱 时间 start ***********************/
    @Schema(description = "上货委托时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deliveryCommissionTime;   // cfs_order_unit 和 arch_cfs_order_unit

    @Schema(description = "装箱作业时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date workEndTime;              // cfs_order_unit 和 arch_cfs_order_unit

//    @Schema(description = "查验时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date inspectTime;

    @Schema(description = "放行时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date exReleaseTime;

//    @Schema(description = "装船开始时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date loadBeginTime;
//
//    @Schema(description = "装船结束时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date loadEndTime;

    /********************* 拖箱 时间 end   ***********************/

    // ----------------------------------------------------------

    /********************* 外拖 时间 start ***********************/
    @Schema(description = "外拖委托时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date outCommissionTime;   // order_unit_gate 和 arch_order_unit_gate

//    @Schema(description = "拖车预约/计划开始时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date planBeginTime;
//
//    @Schema(description = "拖车预约/计划结束时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date planEndTime;

//    @Schema(description = "拖车作业时间 / 入堆时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date workTime;

//    @Schema(description = "进场时间/入堆时间")  // 箱子进场时间，入堆场
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date inYardTime;

//    @Schema(description = "查验时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date inspectTime;

    // 上面有
//    @Schema(description = "放行时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date exReleaseTime;

//    @Schema(description = "装船开始时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date loadBeginTime;
//
//    @Schema(description = "装船结束时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date loadEndTime;
    /********************* 外拖 时间 end   ***********************/

}
